package com.info33.platform.common.enums;

/**
 * @author debj
 * @version 1.0
 * @date 2021/7/23 14:16
 */
public enum LoginType {

    /**
     * 系统用户，密码登录
     */
    SYS_PASSWORD(getSys()),

    /**
     * 系统用户，扫码登录
     */
    SYS_QR_CODE(getSys()),

    /**
     * 系统用户，短信登录
     */
    SYS_MESSAGE(getSys()),

    /**
     * app 用户，密码登录
     */
    APP_PASSWORD(getApp()),

    /**
     * app 用户，短信登录
     */
    APP_MESSAGE(getApp()),

    /**
     * m_app 用户，密码登录
     */
    M_APP_PASSWORD(getMapp()),

    /**
     * m_app 用户，短信登录
     */
    M_APP_MESSAGE(getMapp());

    private final String group;

    public static final String SYS = "SYS";
    public static final String APP = "APP";
    public static final String M_APP = "M_APP";

    LoginType(String group) {
        this.group = group;
    }

    public String getGroup() {
        return group;
    }

    public static String getSys() {
        return SYS;
    }

    public static String getApp() {
        return APP;
    }

    public static String getMapp() {
        return M_APP;
    }

}